﻿<!DOCTYPE html>
<html>
<head>
<title>资讯-{$org.org_platformname}</title>
<vt:include file="inc/meta.inc" />
<link href="Styles/NewsList.css?ver={$version}" rel="stylesheet" type="text/css" />
</head>
<body>
<vt:include file="inc/Header.html" />
<div id="Context">
  <div id="LeftBox">
    <div id="newsBar"><a href="news.ashx">资讯</a>
    <vt:if var="col.col_id" value="0" compare="!=">  
    -> {$:#.col.col_name}
     </vt:if> 
    </div>
    <vt:if var="cols.Length" value="1" compare="<">       
      <!--资讯列表，如果只有一个栏目 -->
      <div id="newsList">
        <vt:if var="pageAmount.Length" value="1" compare="<">
          <div class="noNews">没有资讯</div>
          <vt:else />
          <vt:foreach id="newslist" from="$#.newslist" item="data" columns="-1" index="i" size="12" introlen="150" remark="columns为资讯栏目Id,introlen为简介的长度"> 
            <!--资讯项 -->
            <div class="newsItem">
              <div class="newsTitleBar">
                <div class="newsTitle"> <a href="article.ashx?id={$:#.data.art_id}" title="{$:#.data.art_title}">{$:#.data.art_title}</a></div>
                <div class="newsTime">{$:#.data.art_pushTime  format="yyyy-M-dd"}</div>
              </div>
              <div class="newsContent">
                <vt:if var="data.art_isImg" value="false" compare="=">
                  <div class="newsIntro1"><a href="article.ashx?id={$:#.data.art_id}" >{$:#.data.art_Intro}</a></div>
                  <vt:else />
                  <div class="newsImg"><img src="{$:#.data.Art_Logo}"/></div>
                  <div class="newsIntro2"> <a href="article.ashx?id={$:#.data.art_id}" >{$:#.data.art_Intro}</a></div>
                </vt:if>
              </div>
            </div>
          </vt:foreach>
        </vt:if>
      </div>
      <vt:else />
     <!--如果有多个顶级栏目-->
     <div class="col-box">
      <vt:foreach  from="$#.cols" item="c" remark="资讯栏目"> 
      <div class="col-tit"><div class="triangle_border_right"><span></span></div><a href="newslist.ashx?colid={$:#.c.col_id}">{$:#.c.col_Name}</a>
      <a href="newslist.ashx?colid={$:#.c.col_id}" class="more">更多&gt;&gt;</a>
      </div>
      <div class="col-news">
      <vt:function var="arts" method="getArticle" args="$#.c.col_id" args="6"/>
       <vt:foreach  from="$#.arts" item="data" remark="资讯栏目"> 
      <div class="newsItem">
              <div class="newsTitleBar">
                <div class="newsTitle"> <a href="article.ashx?id={$:#.data.art_id}" title="{$:#.data.art_title}">{$:#.data.art_title}</a></div>
                <div class="newsTime">{$:#.data.art_pushTime  format="yyyy-M-dd"}</div>
              </div>
              <div class="newsContent">
                <vt:if var="data.art_isImg" value="false" compare="=">
                  <div class="newsIntro1"><a href="article.ashx?id={$:#.data.art_id}" >{$:#.data.art_Intro}</a></div>
                  <vt:else />
                  <div class="newsImg"><img src="{$:#.data.Art_Logo}"/></div>
                  <div class="newsIntro2"> <a href="article.ashx?id={$:#.data.art_id}" >{$:#.data.art_Intro}</a></div>
                </vt:if>
              </div>
            </div>
       </vt:foreach>
      </div>
     </vt:foreach>
     </div>
    </vt:if>
    <!--分页导航 -->
    <vt:if var="pageAmount.Length" value="1" compare=">">
      <div id="pagerBar">
        <div class="pagerFirst pagerBtn"><a href="newslist.ashx?colid={$colid}">首页</a></div>
        <!--上一页 -->
        <vt:expression var="pagerPrev" expression="{0}-1" args="$pageIndex" />
        <vt:if var="#.pagerPrev" value="1" compare="<">
          <div class="pagerPrev pagerBtn"><a href="#">上一页</a></div>
          <vt:else />
          <div class="pagerPrev pagerBtn"><a href="newslist.ashx?colid={$colid}&index={$:#.pagerPrev}">上一页</a></div>
        </vt:if>
        <!--分页数字 -->
        <vt:foreach id="pageAmount" from="$#.pageAmount" item="data" index="i" remark="分页数字">
          <vt:if var="#.data" value="$pageIndex" compare="=">
            <div class="pagerIndex pagerBtn pagerCurr"><a href="/newslist.ashx?colid={$colid}&index={$:i}">{$:i}</a></div>
            <vt:else />
            <div class="pagerIndex pagerBtn"><a href="newslist.ashx?colid={$colid}&index={$:i}">{$:i}</a></div>
          </vt:if>
        </vt:foreach>
        <!--下一页 -->
        <vt:expression var="pagerNext" expression="{0}+1" args="$pageIndex" />
        <vt:if var="#.pagerNext" value="$pageAmount.Length" compare=">">
          <div class="pagerNext pagerBtn"><a href="#">下一页</a></div>
          <vt:else />
          <div class="pagerNext pagerBtn"><a href="newslist.ashx?colid={$colid}&index={$:#.pagerNext}">下一页</a></div>
        </vt:if>
        <div class="pagerLast pagerBtn"><a href="newslist.ashx?colid={$colid}&index={$:pageAmount.length}">末页</a></div>
      </div>
    </vt:if>
  </div>
  <div id="RightBox">
    <div class="box">
      <div class="boxBar">
        <div class="title"> 通知公告</div>
        <div class="more"> <a href="Notices.ashx">更多&gt;&gt;</a></div>
      </div>
      <div class="nolist">
        <vt:list type="notice" item="data" index="i" count="10">
          <div class="item" noid="{$:#.data.no_id}">
            <div class="noItem"><a href="notice.ashx?id={$:#.data.no_id}" title="{$:#.data.no_ttl}"> {$:#.data.no_ttl}</a> </div>
            <div class="noTime">{$:#.data.no_startTime  format="[MM-dd]"}</div>
          </div>
        </vt:list>
      </div>
    </div>
    <div class="box">
      <div class="boxBar">
        <div class="title"> 热点资讯</div>
        <div class="more"> <a href="/news.ashx">更多&gt;&gt;</a></div>
      </div>
      <div class="nolist">
        <vt:list type="news" item="data" columns="-1" order="hot" index="i" count="10" remark="资讯">
          <div class="item" artid="{$:#.data.art_id}">
            <div class="noItem"> <img src="images/{$:i}.png"/><a href="/article.ashx?id={$:#.data.art_id}" title="{$:#.data.art_title}"> {$:#.data.art_title}</a></div>
            <div class="noTime">{$:#.data.art_pushTime  format="[MM-dd]"}</div>
          </div>
        </vt:list>
      </div>
    </div>
  </div>
</div>
<vt:include file="inc/footer.html" />
</body>
</html>
